package org.example.usercontroller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/request")
public class RequestController {

    @RequestMapping("/param1")
    public String param1(String userName) {
        return "接收到的参数:" + userName;
    }

    @RequestMapping("/param2")
    public String param2(Integer age) {
        return "2接收到的参数:" + age;
    }

    @RequestMapping("/param3")
    public String param3(int age) {
        return "3接收到的参数:" + age;
    }

    @RequestMapping("/param4")
    public String param4(String userName,String password) {
        return "接收到的参数userName:" + userName +",password:" + password;
    }

    @RequestMapping("/param5")
    public String param5() {
        return ;
    }


}
